package com.hk.blog.domain;

import com.hk.core.data.jpa.domain.AbstractSnowflakeAuditable;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;


/**
 *
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@Accessors(chain = true)
@Table(name = "t_article_info")
public class ArticleInfo extends AbstractSnowflakeAuditable {

    private Long userId;

    private Long categoryId;

    private Integer browseNum;

    private String title;

    private String content;

    private Boolean protect;

    public LocalDateTime getLastUpdateDate() {
        return super.getLastModifiedDate().get();
    }
}
